var jobs;

$(function(){

	init_page();

	jobs = new Jobs();

});

function Jobs(){

	var me = this;
	
	this.Edit = function(job, cbFunc){
		var pack = '<req obj="job" act="edit">'+ job.toXml() +'</req>';
		var req = new Req();
		req.Post(pack, cbFunc);
	}

}

function Job(){
	var me = this;

	this.ID = 0;
	this.Title = "";

	this.toXml = function(){
		return '<job id="'+ me.ID +'" title="'+ this.Title +'" />';
	}

}

function init_page(){
	var tab_jobs = $( "#tab-jobs" );

	$("tr td.edit", tab_jobs).editable();
}